package com.story.aistory.service;

import com.story.aistory.domain.po.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.story.aistory.domain.po.Result;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hui
 * @since 2025-03-12
 */
public interface IPageService extends IService<Page> {

    Result uploadPhoto(MultipartFile mpFile, Integer pageId);

    boolean saveList(List<Page> pageList);

    List<Page> ListByStoryId(Integer storyId);

    List<Page> ListByStoryIds(Set<Integer> storyIds);

    void deleteByStoryId(Integer storyId);

    String uploadImage(MultipartFile multipartFile, String folder);
}
